home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{EB554505-3E59-11D1-9EE4-444553540000}#3.0#0"; "ESDF.OCX"
- Begin VB.Form frmCustomerOrders
- Caption = "Orders of Customer"
- ClientHeight = 6555
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 7845
- LinkTopic = "Form1"
- ScaleHeight = 6555
- ScaleWidth = 7845
- StartUpPosition = 3 'Windows Default
- Begin ESDF.ColumnNoEdit ColumnNoEdit1
- Height = 315
- Index = 0
- Left = 180
- TabIndex = 11
- Top = 6240
- Width = 2175
- _ExtentX = 3836
- _ExtentY = 556
- DataTable = "Table3"
- Browsed = -1 'True
- DataField = "ProductName"
- BrowseColWidth = 20
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnNoEdit cneOrderID
- Height = 315
- Left = 180
- TabIndex = 7
- Top = 3660
- Width = 1035
- _ExtentX = 1826
- _ExtentY = 556
- DataTable = "Table2"
- Browsed = -1 'True
- DataField = "OrderID"
- BrowseColWidth = 6
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnNoEdit ColumnNoEdit2
- Height = 315
- Index = 0
- Left = 3840
- TabIndex = 2
- Top = 1140
- Width = 1815
- _ExtentX = 3201
- _ExtentY = 556
- DataTable = "Table1"
- Browsed = -1 'True
- DataField = "Country"
- BrowseColWidth = 15
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.Table Table3
- Height = 1710
- Left = 180
- TabIndex = 5
- Top = 4440
- Width = 7335
- _ExtentX = 12938
- _ExtentY = 3016
- ColorActive = 16744576
- DatabaseName = "C:\Program Files\DevStudio\VB\Nwind.mdb"
- RecordSource = "Order Details Extended"
- EnableAdd = 0 'False
- EnableEdit = 0 'False
- EnableDel = 0 'False
- EnableRecall = 0 'False
- EnableErase = 0 'False
- ControlBar = "ControlBar1"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.Table Table2
- Height = 1710
- Left = 180
- TabIndex = 6
- Top = 1860
- Width = 6015
- _ExtentX = 10610
- _ExtentY = 3016
- ColorActive = 16744576
- DatabaseName = "C:\Program Files\DevStudio\VB\Nwind.mdb"
- RecordSource = "Orders"
- EnableAdd = 0 'False
- EnableEdit = 0 'False
- EnableDel = 0 'False
- EnableRecall = 0 'False
- EnableErase = 0 'False
- ControlBar = "ControlBar1"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.Table Table1
- Height = 750
- Left = 180
- TabIndex = 4
- Top = 360
- Width = 6015
- _ExtentX = 10610
- _ExtentY = 1323
- ColorActive = 16744576
- DatabaseName = "C:\Program Files\DevStudio\VB\Nwind.mdb"
- RecordSource = "Customers"
- EnableAdd = 0 'False
- EnableEdit = 0 'False
- EnableDel = 0 'False
- EnableRecall = 0 'False
- EnableErase = 0 'False
- ControlBar = "ControlBar1"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ControlBar ControlBar1
- Height = 3975
- Left = 6540
- TabIndex = 0
- Top = 300
- Width = 1200
- _ExtentX = 2117
- _ExtentY = 7011
- End
- Begin ESDF.ColumnNoEdit cneDate
- Height = 315
- Index = 1
- Left = 2820
- TabIndex = 9
- Top = 3660
- Width = 1455
- _ExtentX = 2566
- _ExtentY = 556
- DataTable = "Table2"
- Browsed = -1 'True
- DataField = "RequiredDate"
- BrowseColWidth = 12
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnNoEdit cneDate
- Height = 315
- Index = 2
- Left = 1320
- TabIndex = 8
- Top = 3660
- Width = 1395
- _ExtentX = 2461
- _ExtentY = 556
- DataTable = "Table2"
- Browsed = -1 'True
- DataField = "OrderDate"
- BrowseColWidth = 12
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnNoEdit cneDate
- Height = 315
- Index = 3
- Left = 4440
- TabIndex = 10
- Top = 3660
- Width = 1395
- _ExtentX = 2461
- _ExtentY = 556
- DataTable = "Table2"
- Browsed = -1 'True
- DataField = "ShippedDate"
- BrowseColWidth = 12
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnNoEdit cneCustomerID
- Height = 315
- Left = 5760
- TabIndex = 3
- Top = 1140
- Visible = 0 'False
- Width = 795
- _ExtentX = 1402
- _ExtentY = 556
- DataTable = "Table1"
- DataField = "CustomerID"
- BrowseColWidth = 15
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnNoEdit ColumnNoEdit2
- Height = 315
- Index = 2
- Left = 180
- TabIndex = 1
- Top = 1140
- Width = 3555
- _ExtentX = 6271
- _ExtentY = 556
- DataTable = "Table1"
- Browsed = -1 'True
- DataField = "CompanyName"
- BrowseColWidth = 30
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnNoEdit cneCurrency
- Height = 315
- Index = 1
- Left = 2400
- TabIndex = 12
- Top = 6240
- Width = 1035
- _ExtentX = 1826
- _ExtentY = 556
- DataTable = "Table3"
- Browsed = -1 'True
- DataField = "UnitPrice"
- BrowseColWidth = 12
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnNoEdit ColumnNoEdit1
- Height = 315
- Index = 2
- Left = 3480
- TabIndex = 13
- Top = 6240
- Width = 1095
- _ExtentX = 1931
- _ExtentY = 556
- DataTable = "Table3"
- Browsed = -1 'True
- DataField = "Quantity"
- BrowseColWidth = 3
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnNoEdit cnePercent
- Height = 315
- Left = 4620
- TabIndex = 14
- Top = 6240
- Width = 1215
- _ExtentX = 2143
- _ExtentY = 556
- DataTable = "Table3"
- Browsed = -1 'True
- DataField = "Discount"
- BrowseColWidth = 6
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnNoEdit cneCurrency
- Height = 315
- Index = 4
- Left = 5940
- TabIndex = 15
- Top = 6240
- Width = 1215
- _ExtentX = 2143
- _ExtentY = 556
- DataTable = "Table3"
- Browsed = -1 'True
- DataField = "ExtendedPrice"
- BrowseColWidth = 16
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "... to see details"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 210
- Index = 2
- Left = 180
- TabIndex = 19
- Top = 4200
- Width = 1140
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Click order ..."
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 210
- Index = 1
- Left = 180
- TabIndex = 18
- Top = 1620
- Width = 945
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Country"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 210
- Index = 0
- Left = 3900
- TabIndex = 17
- Top = 120
- Width = 660
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Company Name"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 210
- Index = 4
- Left = 180
- TabIndex = 16
- Top = 180
- Width = 1290
- End
- Attribute VB_Name = "frmCustomerOrders"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim mstrOrdersTable$
- Dim mstrOrderDetailsTable$
- Private Sub cneCurrency_BrowseStr(Index As Integer, pstr As String)
- pstr = Format(pstr, "Currency")
- End Sub
- Private Sub cneDate_BrowseStr(Index As Integer, pstr As String)
- pstr = Format(pstr, "Medium Date")
- End Sub
- Private Sub cnePercent_BrowseStr(pstr As String)
- pstr = Format(pstr, "Percent")
- End Sub
- Private Sub Form_Load()
- mstrOrdersTable = Table2.RecordSource
- mstrOrderDetailsTable = Table3.RecordSource
- End Sub
- Private Sub Table1_TableReposition()
- If Table1.Recordset.RecordCount = 0 Then Exit Sub
- Table2.RecordSource = "SELECT * FROM [" + mstrOrdersTable + "] WHERE CustomerID = '" + cneCustomerID.DataValue + "'"
- Table2.Refresh
- End Sub
- Private Sub Table2_TableReposition()
- If Table2.Recordset.RecordCount = 0 Then Exit Sub
- Table3.RecordSource = "SELECT * FROM [" + mstrOrderDetailsTable + "] WHERE OrderID = " + cneOrderID.DataValue
- Table3.Refresh
- End Sub
-